﻿using System.ComponentModel.DataAnnotations;

namespace Entity.BaseInfo.DTO.WarehousePosition
{
    /// <summary>
    /// 仓位表模型 - 更新
    /// </summary>
    public class WarehousePositionUpdateDTO
    {
        /// <summary>
        /// 仓位id
        /// </summary>
        [Required(ErrorMessage = "仓位Id不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 仓位编码
        /// </summary>
        [Required(ErrorMessage = "仓位编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 仓位名称
        /// </summary>
        [Required(ErrorMessage = "仓位名称Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 仓库id
        /// </summary>
        [Required(ErrorMessage = "仓库Warehouse不能为空")]
        public string WarehouseId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Required(ErrorMessage = "是否启用仓位IsEnable不能为空")]
        public bool IsEnable { get; set; }
    }
}
